/* Lac Viet ERP                                                
 * Copyright (c) 2013 Lac Viet                                 
 * http://www.lacviet.com.vn                                   
 *=============================================================
 * File name            : CF_tblStageList.cs         
 * Created by           : Auto - 04/23/2014 15:03:45                     
 * Last modify          : Auto - 04/23/2014 15:03:45                     
 * Version              : 1.0                                  
 * ============================================================
 */

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace LineOfBusiness.Poco
{
	[Serializable]
	public partial class CF_tblStageList : BaseEntity
	{
		public CF_tblStageList()
		{
            this.OrderStage = 0;
		}

	    #region Properties

		private string _StageID;

        [Key]
		[RegularExpression(@"[a-zA-Z0-9_-]*")]
		[Required]
        [MaxLength(20)]
        public string StageID 
		{ 
			get
			{
                return _StageID;
			}
			set 
			{ 
                _StageID = value;
			} 
		}

		private string _StageName;
        [MaxLength(200)]
        public string StageName 
		{ 
			get
			{
                return _StageName;
			}
			set 
			{ 
                _StageName = value;
			} 
		}

		private string _DepID;
        [MaxLength(20)]
        public string DepID 
		{ 
			get
			{
                return _DepID;
			}
			set 
			{ 
                _DepID = value;
			} 
		}

		private DateTime? _CreatedDate;
        public DateTime? CreatedDate 
		{ 
			get
			{
                return _CreatedDate;
			}
			set 
			{ 
                _CreatedDate = value;
			} 
		}

		private string _UserID;
        [MaxLength(20)]
        public string UserID 
		{ 
			get
			{
                return _UserID;
			}
			set 
			{ 
                _UserID = value;
			} 
		}

		private int _OrderStage;
		[Required]
        public int OrderStage 
		{ 
			get
			{
                return _OrderStage;
			}
			set 
			{ 
                _OrderStage = value;
			} 
		}
		/// <summary>
        /// Column: CF_tblDepartments.DepID
        /// </summary>
		public CF_tblDepartments CF_tblDepartments { get;set; }

		/// <summary>
        /// Column: CT_tblBOMLines.StageID
        /// </summary>
		public ICollection<CT_tblBOMLines> CT_tblBOMLines { get;set; }

		/// <summary>
        /// Column: IV_tblStageTrans.StageID
        /// </summary>
		public ICollection<IV_tblStageTrans> IV_tblStageTrans { get;set; }


        #endregion
	}
}
